/**
 * Project: complex.remoting
 * 
 * File Created at 2010-8-19
 * $Id$
 * 
 * Copyright 1999-2100 Alibaba.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package springremoting.burlap;

import java.net.MalformedURLException;

import com.caucho.burlap.client.BurlapProxyFactory;

/**
 * TODO Comment of BurlapClient
 * @author wb_liang.gao
 *
 */
public class BurlapClient {
    public static void main(String[] args) {
        String url = "http://127.0.0.1:8080/burlap/hello";
        BurlapProxyFactory factory = new BurlapProxyFactory();

        IBurlap burlap;
        try {
            burlap = (IBurlap) factory.create(IBurlap.class, url);
            System.out.println(burlap.get());
        } catch (MalformedURLException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        
    }
}
